home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 85
/
MINAMI85.iso
/
Extra
/
winamp535.exe
/
$R0
/
Winamp Modern
/
scripts
/
seek.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2005-09-15
|
3KB
|
77 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global Group Group16;
Global Slider Slider17;
Global Int Int18;
Global Timer Timer19;
Global Text Text20;
Global Layer Layer21;
System.onScriptLoaded()
{
Group16 = System.getScriptGroup();
Slider17 = Group16.findObject(( "SeekerGhost"));
Text20 = Group16.findObject(( "songticker"));
Layer21 = Group16.findObject(( "player\.seekbar\.pos"));
Timer19 = ( new Timer);
Timer19.setDelay(1000);
return Null;
}
Timer19.onTimer()
{
Text20.setText(( ""));
Timer19.stop();
return Null;
}
System.onScriptUnloading()
{
delete Timer19;
return Null;
}
Slider17.onSetPosition(int newpos)
{
Int Int31;
Float Float27;
Float Float30;
if(Int18) {
Float27 = newpos;
Float27 = ( ( Float27 / 255) * 100);
Float30 = System.getPlayItemLength();
if(( Float30 != 0)) {
Int31 = ( ( Float30 * Float27) / 100);
Timer19.start();
Text20.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int31)) + ( "\/")) + System.integerToTime(Float30)) + ( "\ \(")) + System.integerToString(Float27)) + ( "\%\)\ ")));
}
}
return Null;
}
Slider17.onLeftButtonDown(int x, int y)
{
Int18 = 1;
return Null;
}
Slider17.onLeftButtonUp(int x, int y)
{
Int18 = 0;
Timer19.start();
Text20.setText(( ""));
return Null;
}
Slider17.onSetFinalPosition(int pos)
{
Timer19.start();
Text20.setText(( ""));
return Null;
}